<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${ctx}/system/workflow/list" method="POST">
        <input type="hidden" name="pageSize" value="${pageInfo.pageSize}">
        <input type="hidden" name="pageNum" value="${pageInfo.pageNum}">
        <div class="bjui-searchBar">
            <label>流程定义key：</label><input type="text" name="processDefinitionKey" value="${workFlow.processDefinitionKey!}" size="15"/>
            <button type="submit" class="btn-default" data-icon="search">查询</button>
            <div class="pull-right">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">功能操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" leave="menu">
                        <li><a href="${ctx}/system/workflow/create" data-toggle="dialog" data-id="createWorkflow" data-mask="true"><i class="fa fa-plus"></i> 新增流程</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table data-toggle="tablefixed"  data-width="100%">
	    <thead>
	        <tr>
				<th>流程部署id</th>
				<th>流程定义id</th>
				<th>流程定义名称</th>
				<th>流程定义key</th>
				<th>流程定义版本</th>
				<th>流程图</th>
	            <th align="center">操作</th>
	        </tr>
	    </thead>
	    <tbody>
	        <#list pageInfo.list as processDefinition>
	            <tr>
	                <td>${processDefinition.deploymentId}</td>
	                <td>${processDefinition.id}</td>
	                <td>${processDefinition.name}</td>
	                <td>${processDefinition.key}</td>
                	<td>${processDefinition.version}</td>

                	<td><a href="${ctx}/system/workflow/${processDefinition.id}/view" data-toggle="dialog" data-id="viewWorkflow" data-mask="true" data-options="{width:800,height:600}">查看流程图</a></td>
	                <td>
		                <div class="btn-group">
		                	<button type="button" class="btn-default btn-sm dropdown-toggle" data-toggle="dropdown" data-icon="copy">操作<span class="caret"></span></button>
		                    <ul class="dropdown-menu right" leave="menu">
		                    	<li><a href="${ctx}/system/workflow/${processDefinition.id}/delete" data-toggle="doajax"  data-confirm-msg="确定要删除吗？" data-callback="deleteCallback">删除</a></li>
		                    </ul>
		                </div>
	                </td>
	            </tr>
	        </#list>
	    </tbody>
	</table>
</div>
<@h.pageFooter />

